<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>
	<body>
		<input type="button" id="search" value="search" />
	</body>
	<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
	<script type="text/javascript">
		$(function(){
			$("#search").click(function(){
				console.log("procedure start---");
				$(this).queue("mx",function(){
					console.log("procedure1---");
					setTimeout(function(){$("#search").dequeue("mx");},3000);
					console.log("procedure_end");
					
				});
				
				$(this).queue("mx",function(){
					console.log("procedure2---");
				});
				$(this).dequeue("mx");
				
			});
		});
	</script>
</html>
